switchEcsPyg2SubCreate
Description
switchEcsPyg2SubCreate
Request Method
POST
Request Path
/customer/ecs/switch/pyg2sub/create
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
period | BODY | integer | Yes | No sample value for this parameter. | No description for this parameter. |
instanceId | BODY | string | Yes | No sample value for this parameter. | No description for this parameter. |
cost | BODY | integer | Yes | No sample value for this parameter. | No description for this parameter. |
regionId | BODY | string | Yes | No sample value for this parameter. | No description for this parameter. |
billingMethod | BODY | string | Yes | No sample value for this parameter. | No description for this parameter. |
pricingCycle | BODY | string | Yes | No sample value for this parameter. | No description for this parameter. |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
result | object | `{"ecsCommonResponseVos":[{"instanceId":"i-nj301ppyjl3mdg2f9utl","orderId":2.0230118155153001E+18},{"instanceId":"Guard-i-nj301ppyjl3mdg2f9utl","orderId":2.0230118155153001E+18}]}` | No description for this parameter. |
resultCode | string | 0 | No description for this parameter. |
resultMsg | string | success | No description for this parameter. |
Example
Successful Response example
{
"result":
{
"ecsCommonResponseVos":
[
{
"instanceId":"i-nj301ppyjl3mdg2f9utl",
"orderId":2.0230118155153001E+18
},
{
"instanceId":"Guard-i-nj301ppyjl3mdg2f9utl",
"orderId":2.0230118155153001E+18
}
]
},
"resultCode":"0",
"resultMsg":"success"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}